package com.alex.server.pojo;

import org.omg.PortableInterceptor.SUCCESSFUL;

import java.util.Queue;

/**
 * 消息状态
 */
public class MailConstants {
    /**
     * 投递状态
     * 投递中:0
     * 投递成功:1
     * 投递失败:2
     */
    public static final Integer DELIVERING=0;
    public static  final Integer SUCCESS=1;
    public   static final  Integer ERROR=2;
    //最大重试次数
    public static final  Integer MAX_TRY_COUNT=3;
    //消息超时时间
    public static final  Integer MSG_TIMEOUT=1;
    //队列
    public static final String Queue_name ="mail_queue";
    //交换机
    public static  final  String EXCHANGE_name="mail_exchange";
    //路由key
    public static final  String ROUTING_KEY="mail.routing.key";
}
